package com.kl.drs.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kl.drs.bean.bo.CheckResultBO;
import com.kl.drs.mapper.core.LCContMapper;
import com.kl.drs.mapper.drs.CheckResultMapper;
@Service("checkResultDAO")
public class CheckResultDAO {
	@Autowired 
	private CheckResultMapper checkResultMapper;
	@Autowired 
	private LCContMapper lcContMapper;
	/**
	 * 新增对账返回值
	 */
	public int insertCheckResult(CheckResultBO checkResultBO){
		return checkResultMapper.insertCheckResult(checkResultBO);
	}
	/**
	 * 查询对账记录
	 */
	public CheckResultBO queryCheckResult(CheckResultBO checkResultBO){
		return checkResultMapper.queryCheckResult(checkResultBO);
	};
	/**
	 * 查询列表信息
	 */
	public List<CheckResultBO> getCheckResultList(String crs_salechnl){
		return lcContMapper.getCheckResultList(crs_salechnl);
	};
	/**
	 *更新任务信息
	 */
	public int updateCheckResult(CheckResultBO checkResultBO){
		return checkResultMapper.updateCheckResult(checkResultBO);
	}
}
